.class public Lcom/htc/android/footprints/commonui/AudioRecordDialog;
.super Landroid/app/Dialog;
.source "AudioRecordDialog.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/content/DialogInterface$OnDismissListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;
    }
.end annotation


# static fields
.field private static final TAG:Ljava/lang/String; = "AudioRecordDialog"


# instance fields
.field private mCancelButton:Landroid/widget/Button;

.field private mCurrentCount:Landroid/widget/TextView;

.field private mCurrentStatus:I

.field private mDurationCount:Landroid/widget/TextView;

.field private mFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private mProgress:Landroid/widget/ProgressBar;

.field private mProgressHandler:Landroid/os/Handler;

.field private mRecordButton:Landroid/widget/Button;

.field private mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

.field private mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

.field private mRemainingTime:J

.field private mSaveButton:Landroid/widget/Button;

.field private mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

.field mUpdateTimer:Ljava/lang/Runnable;

.field mediaListener:Lcom/htc/android/footprints/utils/voice/Recorder$OnStateChangedListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;ILcom/htc/android/footprints/vo/Footprint;)V
    .locals 2
    .parameter "context"
    .parameter "theme"
    .parameter "data"

    .prologue
    const/4 v1, 0x0

    .line 75
    invoke-direct {p0, p1, p2}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 42
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgressHandler:Landroid/os/Handler;

    .line 50
    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 51
    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

    .line 52
    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 56
    const/4 v0, 0x0

    iput v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    .line 58
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    .line 218
    new-instance v0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;-><init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mediaListener:Lcom/htc/android/footprints/utils/voice/Recorder$OnStateChangedListener;

    .line 280
    new-instance v0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$4;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$4;-><init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mUpdateTimer:Ljava/lang/Runnable;

    .line 76
    iput-object p3, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 77
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->init()V

    .line 79
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 2
    .parameter "context"
    .parameter "data"

    .prologue
    const/4 v1, 0x0

    .line 68
    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    .line 42
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgressHandler:Landroid/os/Handler;

    .line 50
    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 51
    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

    .line 52
    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 56
    const/4 v0, 0x0

    iput v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    .line 58
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    .line 218
    new-instance v0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$3;-><init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mediaListener:Lcom/htc/android/footprints/utils/voice/Recorder$OnStateChangedListener;

    .line 280
    new-instance v0, Lcom/htc/android/footprints/commonui/AudioRecordDialog$4;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$4;-><init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mUpdateTimer:Ljava/lang/Runnable;

    .line 69
    iput-object p2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 70
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->init()V

    .line 72
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->calRecordingTime()V

    return-void
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)J
    .locals 2
    .parameter "x0"

    .prologue
    .line 33
    iget-wide v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    return-wide v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/commonui/AudioRecordDialog;J)Ljava/lang/String;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 33
    invoke-direct {p0, p1, p2}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setupTimer(J)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mDurationCount:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$400(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgressHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$502(Lcom/htc/android/footprints/commonui/AudioRecordDialog;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 33
    iput p1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    return p1
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->updateUI()V

    return-void
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->updateTimerView()V

    return-void
.end method

.method private calRecordingTime()V
    .locals 9

    .prologue
    const-wide/16 v7, 0x3c

    const-wide/16 v5, 0x0

    .line 288
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->availableStorage()J

    move-result-wide v0

    .line 289
    .local v0, availableSpace:J
    cmp-long v4, v0, v5

    if-lez v4, :cond_1

    .line 290
    const-wide/16 v4, 0x87

    div-long v2, v0, v4

    .line 291
    .local v2, tempTime:J
    cmp-long v4, v2, v7

    if-lez v4, :cond_0

    .line 292
    iput-wide v7, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    .line 297
    .end local v2           #tempTime:J
    :goto_0
    return-void

    .line 293
    .restart local v2       #tempTime:J
    :cond_0
    iput-wide v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    goto :goto_0

    .line 295
    .end local v2           #tempTime:J
    :cond_1
    iput-wide v5, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    goto :goto_0
.end method

.method private init()V
    .locals 3

    .prologue
    .line 90
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    new-instance v2, Landroid/graphics/drawable/ColorDrawable;

    invoke-direct {v2}, Landroid/graphics/drawable/ColorDrawable;-><init>()V

    invoke-virtual {v1, v2}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 91
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/view/Window;->requestFeature(I)Z

    .line 93
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->initView()V

    .line 96
    new-instance v1, Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/htc/android/footprints/utils/StorageUtil;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 97
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    new-instance v2, Lcom/htc/android/footprints/commonui/AudioRecordDialog$1;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$1;-><init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/utils/StorageUtil;->SetOnChangeStorageListerner(Lcom/htc/android/footprints/utils/StorageUtil$OnChangeStorageListener;)V

    .line 115
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    if-nez v1, :cond_0

    .line 116
    new-instance v1, Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-direct {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;-><init>()V

    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    .line 120
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mediaListener:Lcom/htc/android/footprints/utils/voice/Recorder$OnStateChangedListener;

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/utils/voice/Recorder;->setOnStateChangedListener(Lcom/htc/android/footprints/utils/voice/Recorder$OnStateChangedListener;)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    .line 125
    :goto_1
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgressHandler:Landroid/os/Handler;

    new-instance v2, Lcom/htc/android/footprints/commonui/AudioRecordDialog$2;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$2;-><init>(Lcom/htc/android/footprints/commonui/AudioRecordDialog;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 131
    return-void

    .line 118
    :cond_0
    :try_start_1
    new-instance v1, Lcom/htc/android/footprints/utils/voice/Recorder;

    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    invoke-direct {v1, v2}, Lcom/htc/android/footprints/utils/voice/Recorder;-><init>(Ljava/lang/String;)V

    iput-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;
    :try_end_1
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 121
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 122
    .local v0, ex:Ljava/lang/NullPointerException;
    invoke-virtual {v0}, Ljava/lang/NullPointerException;->printStackTrace()V

    goto :goto_1
.end method

.method private initView()V
    .locals 6

    .prologue
    const-wide/16 v4, 0x0

    .line 135
    invoke-virtual {p0, p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 137
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 138
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v2, 0x7f030028

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 140
    .local v1, view:Landroid/view/View;
    const v2, 0x7f0c0068

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ProgressBar;

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgress:Landroid/widget/ProgressBar;

    .line 141
    const v2, 0x7f0c00a4

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mDurationCount:Landroid/widget/TextView;

    .line 142
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mDurationCount:Landroid/widget/TextView;

    invoke-direct {p0, v4, v5}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setupTimer(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 143
    const v2, 0x7f0c00a3

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentCount:Landroid/widget/TextView;

    .line 144
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentCount:Landroid/widget/TextView;

    invoke-direct {p0, v4, v5}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setupTimer(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 145
    const v2, 0x7f0c0020

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mSaveButton:Landroid/widget/Button;

    .line 146
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mSaveButton:Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 147
    const v2, 0x7f0c0021

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCancelButton:Landroid/widget/Button;

    .line 148
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCancelButton:Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 149
    const v2, 0x7f0c00a5

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    .line 150
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 152
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setContentView(Landroid/view/View;)V

    .line 154
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setCanceledOnTouchOutside(Z)V

    .line 155
    return-void
.end method

.method private setupTimer(J)Ljava/lang/String;
    .locals 9
    .parameter "samplelength"

    .prologue
    const-wide/16 v7, 0x3e8

    const-wide/16 v5, 0x3c

    .line 323
    const-wide/16 v0, 0x0

    cmp-long v0, p1, v0

    if-gez v0, :cond_0

    .line 324
    const-string v0, "--:--"

    .line 325
    :goto_0
    return-object v0

    :cond_0
    const-string v0, "%02d:%02d"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    div-long v3, p1, v7

    div-long/2addr v3, v5

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    div-long v3, p1, v7

    rem-long/2addr v3, v5

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method private updateControlState(I)V
    .locals 2
    .parameter "state"

    .prologue
    .line 300
    packed-switch p1, :pswitch_data_0

    .line 314
    :goto_0
    :pswitch_0
    return-void

    .line 302
    :pswitch_1
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    const v1, 0x7f0a0081

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 303
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    const v1, 0x7f020005

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_0

    .line 306
    :pswitch_2
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    const v1, 0x7f0a0080

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 307
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    const v1, 0x7f020006

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_0

    .line 300
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
    .end packed-switch
.end method

.method private updateTimerView()V
    .locals 9

    .prologue
    const/4 v6, 0x0

    const/4 v3, 0x1

    const-wide/16 v7, 0x3e8

    .line 254
    iget v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    if-ne v2, v3, :cond_2

    move v0, v3

    .line 256
    .local v0, ongoing:Z
    :goto_0
    iget v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    if-ne v2, v3, :cond_0

    .line 257
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    if-eqz v2, :cond_0

    .line 258
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentCount:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v3}, Lcom/htc/android/footprints/utils/voice/Recorder;->progress()I

    move-result v3

    int-to-long v3, v3

    invoke-direct {p0, v3, v4}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setupTimer(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 259
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgress:Landroid/widget/ProgressBar;

    invoke-virtual {v2}, Landroid/widget/ProgressBar;->getMax()I

    move-result v1

    .line 260
    .local v1, progressMax:I
    iget-wide v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    const-wide/16 v4, 0x0

    cmp-long v2, v2, v4

    if-lez v2, :cond_3

    .line 261
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgress:Landroid/widget/ProgressBar;

    iget-object v3, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v3}, Lcom/htc/android/footprints/utils/voice/Recorder;->progress()I

    move-result v3

    mul-int/2addr v3, v1

    int-to-long v3, v3

    iget-wide v5, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    div-long/2addr v3, v5

    div-long/2addr v3, v7

    long-to-int v3, v3

    invoke-virtual {v2, v3}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 262
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mDurationCount:Landroid/widget/TextView;

    iget-wide v3, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    mul-long/2addr v3, v7

    invoke-direct {p0, v3, v4}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setupTimer(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 265
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v2}, Lcom/htc/android/footprints/utils/voice/Recorder;->progress()I

    move-result v2

    int-to-long v2, v2

    iget-wide v4, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRemainingTime:J

    mul-long/2addr v4, v7

    cmp-long v2, v2, v4

    if-lez v2, :cond_0

    .line 266
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->terminateRecording()V

    .line 267
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->dismiss()V

    .line 276
    .end local v1           #progressMax:I
    :cond_0
    :goto_1
    if-eqz v0, :cond_1

    .line 277
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgressHandler:Landroid/os/Handler;

    iget-object v3, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mUpdateTimer:Ljava/lang/Runnable;

    invoke-virtual {v2, v3, v7, v8}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 278
    :cond_1
    return-void

    .end local v0           #ongoing:Z
    :cond_2
    move v0, v6

    .line 254
    goto :goto_0

    .line 270
    .restart local v0       #ongoing:Z
    .restart local v1       #progressMax:I
    :cond_3
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mProgress:Landroid/widget/ProgressBar;

    invoke-virtual {v2, v6}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 271
    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mDurationCount:Landroid/widget/TextView;

    const-wide/16 v3, -0x1

    invoke-direct {p0, v3, v4}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->setupTimer(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method private updateUI()V
    .locals 1

    .prologue
    .line 249
    iget v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    invoke-direct {p0, v0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->updateControlState(I)V

    .line 250
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->updateTimerView()V

    .line 251
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "view"

    .prologue
    const v3, 0x7f0a0082

    const/16 v1, 0x80

    const/4 v2, 0x1

    .line 158
    invoke-virtual {p1}, Landroid/view/View;->isEnabled()Z

    move-result v0

    if-nez v0, :cond_1

    .line 197
    :cond_0
    :goto_0
    return-void

    .line 160
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mSaveButton:Landroid/widget/Button;

    if-ne p1, v0, :cond_4

    .line 161
    iget v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    if-ne v0, v2, :cond_2

    .line 162
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 165
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 166
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    .line 167
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAudioFileName:Ljava/lang/String;

    .line 168
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-interface {v0, v2, v1}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;->OnRecorded(ILcom/htc/android/footprints/vo/Footprint;)V

    .line 170
    :cond_3
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->dismiss()V

    goto :goto_0

    .line 171
    :cond_4
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCancelButton:Landroid/widget/Button;

    if-ne p1, v0, :cond_6

    .line 172
    iget v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    if-ne v0, v2, :cond_5

    .line 173
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 176
    :cond_5
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-interface {v0, v1, v2}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;->OnRecorded(ILcom/htc/android/footprints/vo/Footprint;)V

    .line 177
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->dismiss()V

    goto :goto_0

    .line 178
    :cond_6
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    if-ne p1, v0, :cond_0

    .line 183
    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->isExternalStorageEnough()Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-static {}, Lcom/htc/android/footprints/utils/StorageUtil;->isInternalStorageEnough()Z

    move-result v0

    if-nez v0, :cond_8

    .line 184
    :cond_7
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a005f

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 188
    :cond_8
    iget v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCurrentStatus:I

    if-nez v0, :cond_9

    .line 189
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->startRecording()V

    .line 190
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 195
    :goto_1
    invoke-direct {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->updateUI()V

    goto/16 :goto_0

    .line 192
    :cond_9
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->stopRecording()V

    .line 193
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    goto :goto_1
.end method

.method public onDismiss(Landroid/content/DialogInterface;)V
    .locals 2
    .parameter "dialog"

    .prologue
    .line 341
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 342
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/StorageUtil;->closeStorgaeUtil()V

    .line 343
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    if-nez v0, :cond_2

    .line 349
    :cond_1
    :goto_0
    return-void

    .line 344
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->stop()V

    .line 345
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 346
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    .line 347
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAudioFileName:Ljava/lang/String;

    goto :goto_0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .parameter "keyCode"
    .parameter "event"

    .prologue
    const/4 v1, 0x1

    .line 201
    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_1

    .line 202
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->terminateRecording()V

    .line 203
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->dismiss()V

    .line 212
    :cond_0
    :goto_0
    invoke-super {p0, p1, p2}, Landroid/app/Dialog;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    return v0

    .line 204
    :cond_1
    const/16 v0, 0x13

    if-eq p1, v0, :cond_2

    const/16 v0, 0x14

    if-eq p1, v0, :cond_2

    const/16 v0, 0x15

    if-eq p1, v0, :cond_2

    const/16 v0, 0x16

    if-ne p1, v0, :cond_0

    .line 206
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    invoke-virtual {v0}, Landroid/widget/Button;->isFocusable()Z

    move-result v0

    if-nez v0, :cond_0

    .line 207
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordButton:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setFocusable(Z)V

    .line 208
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mSaveButton:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setFocusable(Z)V

    .line 209
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mCancelButton:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setFocusable(Z)V

    goto :goto_0
.end method

.method protected onStop()V
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->stop()V

    .line 84
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    .line 85
    invoke-super {p0}, Landroid/app/Dialog;->onStop()V

    .line 87
    return-void
.end method

.method public setRecordStatusListener(Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;)V
    .locals 0
    .parameter "listener"

    .prologue
    .line 318
    if-eqz p1, :cond_0

    iput-object p1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

    .line 319
    :cond_0
    return-void
.end method

.method public terminateRecording()V
    .locals 3

    .prologue
    .line 330
    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 331
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    if-nez v0, :cond_1

    .line 338
    :cond_0
    :goto_0
    return-void

    .line 332
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->stop()V

    .line 333
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 334
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    .line 335
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAudioFileName:Ljava/lang/String;

    .line 336
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mRecordListener:Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;

    const/4 v1, 0x1

    iget-object v2, p0, Lcom/htc/android/footprints/commonui/AudioRecordDialog;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-interface {v0, v1, v2}, Lcom/htc/android/footprints/commonui/AudioRecordDialog$recordStateListener;->OnRecorded(ILcom/htc/android/footprints/vo/Footprint;)V

    goto :goto_0
.end method
